package components
{
	import mx.managers.ISystemManager;
	import fbp.*
	
	public class StringReverse extends NetworkComponent
	{
		
		public function StringReverse(system_manager:ISystemManager)
		{
			super(system_manager);
		}
		
		public override function process(data:*):*
		{
			var the_string:String = String(data);
			var char_array:Array = new Array();
			
			for(var i:int; i < the_string.length; i++)
			{
				char_array.push(the_string.charAt(i));
			}
			the_string = "";
			while(char_array.length > 0)
			{
				the_string += char_array.pop();
			}
			
			return the_string
		}

	}
}